#pragma once
#include "graphClass.h"
#include <Windows.h>
#include <MMSystem.h>

class timerClass
{
private:
	int period;
	MMRESULT timerID;
	bool started;
	graphClass *owner;
public:
	timerClass(int periodIN, graphClass *ownerIN, bool startedIN=true);//could be useful still :P
	~timerClass();
	void startCount();
	void stopCount();
	int getPeriod();
	bool isStarted();
};

void CALLBACK timerClassProc(UINT wTimerID, UINT msg, DWORD dwUser, DWORD dw1, DWORD dw2);